package HLLibClasses;

import HLCode.HLClassManager;
import HLCode.HLLibClass;
import HLCode.HLObject;
import HLLib.base.HLString;
import HLLib.purchase.HLADMob;

public class HLClassADMob extends HLLibClass {
    public HLClassADMob(HLClassManager owner) {
        super(owner);
    }

    public HLObject NewObject() {
        return new HLADMob();
    }

    public void Execute(HLObject self, int index, HLObject args, HLObject resultOwnerObject, int resultIndex) {
        switch (index) {
        case 0: {
            ((HLADMob) self).ShowAD(args.GetInt(0));
            break;
        }
        case 1: {
            ((HLADMob) self).HideAD();
            break;
        }
        case 2: {
            ((HLADMob) self).SetAppID((HLString)args.GetObject(0));
            break;
        }
        }
    }

    public void StaticExecute(int index, HLObject args, HLObject resultOwnerObject, int resultIndex) {
        switch (index) {
        case 0: {
            HLADMob.Dispose();
            break;
        }
        }
    }
}
